package com.openvas.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.openvas.commons.common.annotation.Excel;
import com.openvas.commons.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 table_result
 * 
 * @author ruoyi
 * @date 2021-11-04
 */
public class TableResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** result的id */
    private String resultId;

    /** result的名称 */
    @Excel(name = "result的名称")
    private String name;

    /** 结果显示的危险程度（高中低） */
    @Excel(name = "结果显示的危险程度", readConverterExp = "高=中低")
    private String threat;

    /** 结果的危险级数（用数字所表示） */
    @Excel(name = "结果的危险级数", readConverterExp = "用=数字所表示")
    private Long severity;

    /** 结果的qod,这里是百分之几 */
    @Excel(name = "结果的qod,这里是百分之几")
    private Integer qod;

    /** 主机的IP地址 */
    @Excel(name = "主机的IP地址")
    private String hostIp;

    /** 主机的名字 */
    @Excel(name = "主机的名字")
    private String hostName;

    /** 端口，包含什么协议 */
    @Excel(name = "端口，包含什么协议")
    private String port;

    /** 所属的用户 */
    @Excel(name = "所属的用户")
    private String userName;

    /** 结果的总结 */
    @Excel(name = "结果的总结")
    private String summary;

    /** 检测结果 */
    @Excel(name = "检测结果")
    private String detectionResult;

    /** 此id用于查询脆弱性 */
    @Excel(name = "此id用于查询脆弱性")
    private String nvtId;

    /** 产品 */
    @Excel(name = "产品")
    private String product;

    /** 结果中的details标签中的内容 */
    @Excel(name = "结果中的details标签中的内容")
    private String method;

    /** 结果显示有的内容 */
    @Excel(name = "结果显示有的内容")
    private String insight;

    /** Detection Method中有 */
    @Excel(name = "Detection Method中有")
    private String details;

    /** Detection Method中有 */
    @Excel(name = "Detection Method中有")
    private String scanNvtVersion;

    /** Affected 的内容，影响的软件以及操作系统 */
    @Excel(name = "Affected 的内容，影响的软件以及操作系统")
    private String affect;

    /** 影响 */
    @Excel(name = "影响")
    private String impact;

    /** 解决方案 */
    @Excel(name = "解决方案")
    private String solution;

    /** 参考文献 */
    @Excel(name = "参考文献")
    private String references;

    /** 一个url */
    @Excel(name = "一个url")
    private String others;

    public void setResultId(String resultId) 
    {
        this.resultId = resultId;
    }

    public String getResultId() 
    {
        return resultId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setThreat(String threat) 
    {
        this.threat = threat;
    }

    public String getThreat() 
    {
        return threat;
    }
    public void setSeverity(Long severity) 
    {
        this.severity = severity;
    }

    public Long getSeverity() 
    {
        return severity;
    }
    public void setQod(Integer qod) 
    {
        this.qod = qod;
    }

    public Integer getQod() 
    {
        return qod;
    }
    public void setHostIp(String hostIp) 
    {
        this.hostIp = hostIp;
    }

    public String getHostIp() 
    {
        return hostIp;
    }
    public void setHostName(String hostName) 
    {
        this.hostName = hostName;
    }

    public String getHostName() 
    {
        return hostName;
    }
    public void setPort(String port) 
    {
        this.port = port;
    }

    public String getPort() 
    {
        return port;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }
    public void setDetectionResult(String detectionResult) 
    {
        this.detectionResult = detectionResult;
    }

    public String getDetectionResult() 
    {
        return detectionResult;
    }
    public void setNvtId(String nvtId) 
    {
        this.nvtId = nvtId;
    }

    public String getNvtId() 
    {
        return nvtId;
    }
    public void setProduct(String product) 
    {
        this.product = product;
    }

    public String getProduct() 
    {
        return product;
    }
    public void setMethod(String method) 
    {
        this.method = method;
    }

    public String getMethod() 
    {
        return method;
    }
    public void setInsight(String insight) 
    {
        this.insight = insight;
    }

    public String getInsight() 
    {
        return insight;
    }
    public void setDetails(String details) 
    {
        this.details = details;
    }

    public String getDetails() 
    {
        return details;
    }
    public void setScanNvtVersion(String scanNvtVersion) 
    {
        this.scanNvtVersion = scanNvtVersion;
    }

    public String getScanNvtVersion() 
    {
        return scanNvtVersion;
    }
    public void setAffect(String affect) 
    {
        this.affect = affect;
    }

    public String getAffect() 
    {
        return affect;
    }
    public void setImpact(String impact) 
    {
        this.impact = impact;
    }

    public String getImpact() 
    {
        return impact;
    }
    public void setSolution(String solution) 
    {
        this.solution = solution;
    }

    public String getSolution() 
    {
        return solution;
    }
    public void setReferences(String references) 
    {
        this.references = references;
    }

    public String getReferences() 
    {
        return references;
    }
    public void setOthers(String others) 
    {
        this.others = others;
    }

    public String getOthers() 
    {
        return others;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("resultId", getResultId())
            .append("name", getName())
            .append("threat", getThreat())
            .append("severity", getSeverity())
            .append("qod", getQod())
            .append("hostIp", getHostIp())
            .append("hostName", getHostName())
            .append("port", getPort())
            .append("createTime", getCreateTime())
            .append("userName", getUserName())
            .append("summary", getSummary())
            .append("detectionResult", getDetectionResult())
            .append("nvtId", getNvtId())
            .append("product", getProduct())
            .append("method", getMethod())
            .append("insight", getInsight())
            .append("details", getDetails())
            .append("scanNvtVersion", getScanNvtVersion())
            .append("affect", getAffect())
            .append("impact", getImpact())
            .append("solution", getSolution())
            .append("references", getReferences())
            .append("others", getOthers())
            .toString();
    }
}
